const days = (time = new Date()) => {
    let date = time;
    let yy = date.getFullYear();
    let mm = date.getMonth() + 1;
    mm = mm >= 10 ? mm : '0' + mm
    let dd = date.getDate();
    dd = dd >= 10 ? dd : '0' + dd
    let yymmdd = yy + '-' + mm + '-' + dd

    let h = date.getHours();
    let m = date.getMinutes();
    m = m >= 10 ? m : '0' + m
    let s = date.getSeconds();
    s = s >= 10 ? s : '0' + s
    let hms = h + ':' + m + ':' + s

    let ymdHms = yymmdd + ' ' + hms

    return {
        yy,
        mm,
        dd,
        yymmdd,
        h,
        m,
        s,
        hms,
        ymdHms,
    }
}
export default days